{{useCss "/app-pages/css/post.scss"}}
<div class="post">
    <div class="box">
        <!-- 用户 -->
        <div class="author">
            <div class="head">
                <img bind-src="{{loginer.info.header_url||'/images/public/78_avatar_middle.jpg'}}?imageView2/1/w/126/h/126" />
            </div>
            <div class="name">{{loginer.info.nick_name}}</div>
            <div class="content">
                <div class="item">
                    <div class="num">{{loginer.info.total_post||0}}</div>
                    <div class="title">主题</div>
                </div>
                <div class="item">
                    <div class="num">{{loginer.info.integral||0}}</div>
                    <div class="title">积分</div>
                </div>
            </div>
        </div>
        <!-- 发布区 -->
        <div class="contents">
            <div class="title">
                标题：
                <input type="text" bind-input="{{'$Cache.post.new.title'}}" bind-value="{{$Cache.post.new.title}}" placeholder="请输入话题标题" />
            </div>
            <div class="imagebox">
                话题封面(点击图片可删除)：
                <button onclick="javescript:document.getElementById('upload_post_preview').click()" disabled="{{$Cache.post.uploading_post_preview}}">{{$Cache.post.uploading_post_preview?"正在上传":"选择封面图片"}}</button>
                <input type="file" accept="image/*" event-change="{{'$Event.post.upload_preview'}}" id="upload_post_preview" style="display:none" />
                <div class="img">
                    <img bind-src="{{$Cache.post.new.preview_img||'/images/public/post_preview.png'}}?imageView2/1/h/200" />
                </div>
            </div>
            <div class="modules">
                选择版块：
                <label style="padding-right:15px">{{$Cache.post.new._module_name}}</label>
                <select event-change="{{'$Event.post.select_post_module'}}">
                    <option value="false">--请选择版块--</option>
                    {{#each $Cache.post.module_list}}
                    <option value="{{$Index}}">{{name}}</option>
                    {{/each}}
                </select>
            </div>
            <div class="content">
                <textarea placeholder="请输入内容" id="container" name="container" type="text/plain">
                </textarea>
            </div>
            <div>
                <button event-click="{{'$Event.post.submit_post'}}">提交</button>
            </div>
        </div>
    </div>
</div>
